<template>
  <div class="show">
    <h1>show</h1>
    <h1>{{ $route.params.id }}</h1>
    <hr>
    <router-view></router-view>
    <h1>{{ id }}</h1>
  </div>
</template>

<script>
export default {
  name: 'Show',
  data() {
    return {
      id: null
    }
  },
  created() {
    const { id } = this.$route.params
    this.id = id
    console.log(this.$route)
    // console.log(this.$router)
    // console.log('====')
    // console.log(this.$route.params.id)
    // params /:id/:name/
    // query ?username=john&id=1234535
  }
}
</script>
